import axios from './http';
import {MASTER_URI} from '../uitls/ajaxUrl';
/**
 * Created by luqidong on 2017/12/25.
 */
/**
 * 获取足球的信息
 * @returns {*}
 */
export function getFootDateR() {
    return axios.get(`${MASTER_URI}/data/Handler.ashx?action=401&params={}`);
}

/**
 * 投注前校验
 * @returns {*}
 */
export function beforeSendVaildR(token, data) {
    return axios.post(`${MASTER_URI}/master/ml/plan/betValid`, data, {
        headers: {
            token
        }
    });
}
/**
 * 彩帝投注
 * @param token
 * @param data
 * @returns {*}
 */
export function godPay(token, data) {
    return axios.post(`${MASTER_URI}/master/ml/plan/bet`, data, {
        headers: {
            token
        }
    });
}